package com.symria.server.po;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * AppResource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "APP_RESOURCE")
public class AppResource implements java.io.Serializable {

	// Fields

	private Integer id;
	private Integer operId;
	private String appSid;
	private String resType;
	private String resPath;
	private Integer resSpace;
	private String resourceSize;
	private String suffix;
	private Date createDate;
	private String resName;

	// Constructors

	/** default constructor */
	public AppResource() {
	}

	/** full constructor */
	public AppResource(Integer operId, String appSid, String resType,
			String resPath, Integer resSpace, String resourceSize,
			String suffix, Date createDate, String resName) {
		this.operId = operId;
		this.appSid = appSid;
		this.resType = resType;
		this.resPath = resPath;
		this.resSpace = resSpace;
		this.resourceSize = resourceSize;
		this.suffix = suffix;
		this.createDate = createDate;
		this.resName = resName;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "OPER_ID")
	public Integer getOperId() {
		return this.operId;
	}

	public void setOperId(Integer operId) {
		this.operId = operId;
	}

	@Column(name = "APP_SID", length = 20)
	public String getAppSid() {
		return this.appSid;
	}

	public void setAppSid(String appSid) {
		this.appSid = appSid;
	}

	@Column(name = "RES_TYPE", length = 8)
	public String getResType() {
		return this.resType;
	}

	public void setResType(String resType) {
		this.resType = resType;
	}

	@Column(name = "RES_PATH", length = 256)
	public String getResPath() {
		return this.resPath;
	}

	public void setResPath(String resPath) {
		this.resPath = resPath;
	}

	@Column(name = "RES_SPACE", precision = 10)
	public Integer getResSpace() {
		return this.resSpace;
	}

	public void setResSpace(Integer resSpace) {
		this.resSpace = resSpace;
	}

	@Column(name = "RESOURCE_SIZE", length = 16)
	public String getResourceSize() {
		return this.resourceSize;
	}

	public void setResourceSize(String resourceSize) {
		this.resourceSize = resourceSize;
	}

	@Column(name = "SUFFIX", length = 6)
	public String getSuffix() {
		return this.suffix;
	}

	public void setSuffix(String suffix) {
		this.suffix = suffix;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "CREATE_DATE", length = 0)
	public Date getCreateDate() {
		return this.createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Column(name = "RES_NAME", length = 64)
	public String getResName() {
		return this.resName;
	}

	public void setResName(String resName) {
		this.resName = resName;
	}

}